# 基于java镜像创建新镜像
FROM openjdk:8-jre-alpine
#设置工作目录
WORKDIR /course-card
# 将jar包添加到容器中并更名为 SeckillSystem.jar
COPY course-card-2.1.0.jar  course-card.jar
#设置时区
RUN echo "Asia/shanghai" > /etc/timezone
#暴露8090端口
EXPOSE 9996
# 运行jar包
CMD ["nohup","java","-jar","course-card.jar"]
